﻿using System;
using System.Collections.Generic;
using System.Linq;

using System.Device.Location;

namespace CorreoSocialWeb.Models
{
    public class DistanciaLatLong
    {
        public static double Get(double origenLat, double origenLon, double destinoLat, double destinoLon)
        {
            var origen = new GeoCoordinate(origenLat, origenLon);
            var destino = new GeoCoordinate(destinoLat, destinoLon);

            return origen.GetDistanceTo(destino);
        }
    }
}